<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>工作台</title>
</head>
<body>
	<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>主体页面1</title>
		<link rel="stylesheet" href="index1.css">
	</head>
	<body>
		<div>
			<div class="header clearfix">
				<div class="title">TAPD测试用</div>
				<div class="add">+</div>
				<div>
					<ul class="nav clearfix">
						<a class="home" href="index1.html">首页</a>
						<li id="1">需求</li>
						<li id="2">看板</li>
						<li id="3">迭代</li>
						<li id="4">文档</li>
						<li id="5">报表</li>
						<li id="6">Wiki</li>
						<li id="7">缺陷</li>
						<li id="8">设置</li>
					</ul>
				</div>
			</div>
			<div class="content active">工作台页面</div>
			<div class="content">需求页面</div>
			<div class="content">看板页面</div>
			<div class="content">迭代页面</div>
			<div class="content">文档页面</div>
			<div class="content">报表页面</div>
			<div class="content">Wiki页面</div>
			<div class="content">缺陷页面</div>
			<div class="content">设置页面</div>
			<div class="footer"></div>
			<div class="siber">
				<img class="logo" src="./images/建筑.png" alt="">
				<a href="gongzuotai.html"><img src="./images/盒子.png" alt=""></a>
				<a href="wendang.html"><img src="./images/文本.png" alt=""></a>
				<a href="xiangmu.html"><img src="./images/项目.png" alt=""></a>
				<a href="message.html"><img src="./images/铃铛.png" alt=""></a>
			</div>
		</div>
		<script>
			var lis = document.getElementsByTagName('li');
			var contents =document.getElementsByClassName('content')
				for(var i=0;i<lis.length;i++){
				lis[i].onclick=function(){
					for(var j=0; j<contents.length;j++){
						contents[j].className="content"
					}
					contents[this.id-1].className+=' active'
				}
			}
		</script>
	</body>
	</html>
</body>
</html>
